package com.zm.service.impl;

import com.zm.dao.AppCategoryMapper;
import com.zm.pojo.AppCategory;
import com.zm.service.AppCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by CYJ on 2018/9/17.
 */
@Service
public class AppCategoryServiceImpl implements AppCategoryService {
    @Resource
    private AppCategoryMapper appCategoryMapper;
    //查询一级分类
    @Override
    public List<AppCategory> queryByCategoryLevel1() {
        List<AppCategory> levle1=appCategoryMapper.selectByCategoryLevel1();
        return levle1;
    }
    //查询二级分类
    @Override
    public List<AppCategory> queryByCategoryLevel2() {
        List<AppCategory> levle2=appCategoryMapper.selectByCategoryLevel2();
        return levle2;
    }
    //查询三级分类
    @Override
    public List<AppCategory> queryByCategoryLevel3() {
        List<AppCategory> levle3=appCategoryMapper.selectByCategoryLevel3();
        return levle3;
    }
}
